<template>
  <div>
    <div>
      <h4>喉功能</h4>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>最长发音时间：</span>
          <div>
            <el-radio-group v-model="pgForm.throat_function_value">
              <el-radio style="display: inline" label="配合"></el-radio>
              <el-radio style="display: inline"  label="不配合"></el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col>
          <div>
            <span>最长发音时间 </span>
            <el-input v-model="pgForm.throat_function_input1" placeholder="" style="width: 20%;"></el-input>
            <span> 秒</span>
          </div>
        </el-col>
        <el-col :span="7">
          <span>音质</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.throat_function_radio1">
              <el-radio :label="1">不配合</el-radio>
              <el-radio :label="2">正常</el-radio>
              <el-radio :label="3">斯哑</el-radio>
              <el-radio :label="4">震颤</el-radio>
              <el-radio :label="5">湿润</el-radio>
              <el-radio :label="6">明显异常</el-radio>
              <el-input v-model="pgForm.throat_function_input2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7">
          <span>自主咳嗽</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.throat_function_radio2">
              <el-radio :label="1">不配合</el-radio>
              <el-radio :label="2">马上</el-radio>
              <el-radio :label="3">推迟</el-radio>
              <el-radio :label="4">强烈</el-radio>
              <el-radio :label="5">减弱</el-radio>
              <el-radio :label="6">缺失</el-radio>
              <el-input v-model="pgForm.throat_function_input3" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7">
          <span>自主清嗓</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.throat_function_radio3">
              <el-radio :label="1">不配合</el-radio>
              <el-radio :label="2">马上</el-radio>
              <el-radio :label="3">推迟</el-radio>
              <el-radio :label="4">强烈</el-radio>
              <el-radio :label="5">减弱</el-radio>
              <el-radio :label="6">缺失</el-radio>
              <el-input v-model="pgForm.throat_function_input4" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "throat_function",
  title: "喉功能",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        throat_function_input1: '',
        throat_function_input2: '',
        throat_function_input3: '',
        throat_function_input4: '',
        throat_function_value: '',
        throat_function_radio1: '',
        throat_function_radio2: '',
        throat_function_radio3: '',
      }

    }
  }
}
</script>

<style scoped>

.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
